package ggze.GGZEServer.home.enums;

public class TypeEnum {
    public enum INDENT{
        REAL("0", "真实"),
        DUMMY("1", "虚拟");
        private String value;
        private String label;

        INDENT(String label, String value) {
            this.label = label;
            this.value = value;
        }

        public static String getValues(String value) {
            TypeEnum.INDENT[] businessModeEnums = values();
            for (TypeEnum.INDENT businessModeEnum : businessModeEnums) {
                if (businessModeEnum.getValue().equals(value)) {
                    return businessModeEnum.getLabel();
                }
            }
            return null;
        }

        public static String getLables(String value) {
            TypeEnum.INDENT[] businessModeEnums = values();
            for (TypeEnum.INDENT businessModeEnum : businessModeEnums) {
                if (businessModeEnum.getLabel().equals(value)) {
                    return businessModeEnum.getValue();
                }
            }
            return null;
        }

        public String getValue() {
            return this.value;
        }

        public String getLabel() {
            return this.label;
        }
    }
}
